package com.bootdo.program.wallpaper.service;

import com.bootdo.program.wallpaper.dao.WxAdPageDao;
import com.bootdo.program.wallpaper.domain.WxAdPageDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class WxAdPageService {
	@Autowired
	private WxAdPageDao wxAdPageDao;
	
	public WxAdPageDO get(Integer id){
		return wxAdPageDao.get(id);
	}
	
	public List<WxAdPageDO> list(Map<String, Object> map){
		return wxAdPageDao.list(map);
	}
	
	public int count(Map<String, Object> map){
		return wxAdPageDao.count(map);
	}
	
	public int save(WxAdPageDO wxAdPage){
		return wxAdPageDao.save(wxAdPage);
	}
	
	public int update(WxAdPageDO wxAdPage){
		return wxAdPageDao.update(wxAdPage);
	}
	
	public int remove(Integer id){
		return wxAdPageDao.remove(id);
	}
	
	public int batchRemove(Integer[] ids){
		return wxAdPageDao.batchRemove(ids);
	}
	
}
